package com.minsu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("listings")
public class Listing {
    @TableId(type = IdType.ASSIGN_UUID)
    private String listingId;

    @TableField
    private String title;

    @TableField
    private BigDecimal price;

    @TableField
    private String location;

    @TableField
    private BigDecimal rating;

    @TableField
    private Integer reviewsCount;

    @TableField
    private String description;

    @TableField
    private String hostName;

    @TableField
    private String hostResponseRate;

    @TableField
    private Boolean isSuperHost;

    @TableField
    private String roomType;  // 房型

    @TableField
    private BigDecimal area;  // 面积

    @TableField
    private Integer status;   // 状态：1-上架，0-下架

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    private List<Amenity> amenities;

    @TableField(exist = false)
    private Location locationInfo;
} 